package com.backend.securitiessystem.task;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * 定时任务时间配置
 *
 * @author tuyufeng
 * @date 2024/05/26
 */
@Component
@Data
public class TaskConfig {

    @Value("${task.time.china-index}")
    private Long chinaIndexTime;

    @Value("${task.time.new-share}")
    private Long newShareTime;

    @Value("${task.time.flash}")
    private Long flashTime;

    @Value("${task.time.capital-flow}")
    private Long capitalFlowTime;

    @Value("${task.time.rise-fall}")
    private Long riseFallTime;
}
